from django.conf.urls.defaults import *
from settings import DEVEL

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^nowy/', include('rubikonforumfoo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
    (r'^forum/(?P<podstrona>\d+)/$', 'forum.views.index'),
	(r'^forum/nowytemat$', 'forum.views.nowytemat2'),
	(r'^forum/login$', 'forum.views.logowanie'),
	(r'^forum/wyloguj$', 'forum.views.wyloguj'),
	(r'^forum/nowy_projekt$', 'forum.views.nowy_projekt'),
	(r'^forum/edycja_projekt$', 'forum.views.edycja_projekt'),
	(r'^forum/rank$', 'forum.views.rank'),
	(r'^forum/emotki$', 'forum.views.emolista'),
	(r'^forum/(?P<temat>\d+)/(?P<podstrona>\d+)/watek$', 'forum.views.watek'),
	(r'^forum/(?P<temat>\d+)/(?P<cytat>[\dc]+)/odpowiedz$', 'forum.views.odpowiedz2'),
	(r'^forum/(?P<wygrany>[abc])/(?P<przegrany>[abc])/vote$', 'forum.views.vote'),
	(r'^forum/(?P<profil>\d+)/profil$', 'forum.views.profil'),
	
	(r'^forum/image/$', 'forum.views.image'),

	(r'^forum/przyphaslo$', 'forum.views.przyphaslo'),
	
	
)

if DEVEL:
  urlpatterns += patterns('',
	(r'^moje_media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': '/home/marcin/rubikonforum/media'}),
  )
